//
//  MLUserInterface.h
//  WaterProof
//
//  Created by victor0321 on 12/1/4.
//  Copyright 2012年 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "cocos2d.h"

#import "MLGameLayer.h"
#import "MLPauseLayer.h"
#import "MLCountDownFreezeTime.h"
#import "StageData.h"

@interface MLUserInterface : CCLayer {
    CGSize screenSize;
}

+(MLUserInterface*) sharedLayer;
-(BOOL)isTouchFor:(CGPoint)touchPoint weaponTag:(Weapon)tag;
-(BOOL)isTouchFor:(CGPoint)touchPoint Tag:(UIBtnTags)tag;
-(void)update:(ccTime)delta;
-(void)placeWeapon:(WeaponMask)theWeapon approved:(BOOL)approve;

@property (nonatomic, assign) BOOL haveWeapon;
@property (nonatomic, assign) BOOL wantToPlaceWeapon;
@property (nonatomic, assign) BOOL weaponPlaced;
@property (nonatomic, assign) Weapon weapon;
@property (nonatomic, assign) CGPoint touchLocation;

@property (nonatomic, assign) BOOL canPickBucketSmall;
@property (nonatomic, assign) BOOL canPickBucketMiddle;
@property (nonatomic, assign) BOOL canPickBucketBig;
@property (nonatomic, assign) BOOL canPickTubeVertical;
@property (nonatomic, assign) BOOL canPickTubeHorizontal;
@property (nonatomic, assign) BOOL canPickTubeUpToRight;
@property (nonatomic, assign) BOOL canPickTubeUpToLeft;
@property (nonatomic, assign) BOOL canPickTubeRightToDown;
@property (nonatomic, assign) BOOL canPickTubeLeftToDown;

@end
